package com.thjk.bdf.preloan.web.enums;
/**
 * @author tao.pan
 * @Time：2019年4月24日 下午3:44:08
 * @version 1.0
 */
public enum LoanInfoEnum {

	
	REPAY_METHOD_DEDX("DEDX","等额等息"),
	REPAY_METHOD_DBDX ("DBDX ","等本等息"),
	REPAY_METHOD_DBLJ("DBLJ","等比累进"),
	REPAY_METHOD_DEBX("DEBX","等额本息"),
	REPAY_METHOD_DEBJ("DEBJ","等额本金"),
	REPAY_METHOD_LSBQ("LSBQ","利随本清"),
	REPAY_METHOD_HDFX("HDFX"," 一次性还款付息"),
	REPAY_METHOD_AQHXDQHK("AQHXDQHK","按期还息到期还本"),
	REPAY_METHOD_DZHK("DZHK","定制还款"),
	REPAY_METHOD_DELJ("DELJ","等额累进"),
	;
	
    
	private String code;
	private String desc;
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	LoanInfoEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getRetValue(String value) {
		if (value != null) {
			for (LoanInfoEnum loanInfoEnum : values()) {
				if (loanInfoEnum.getCode().equals(value)) {
					return loanInfoEnum.desc;
				}
			}
		}
		return null;
	}
}
